#!/bin/bash
# 获取当前脚本的绝对路径
SCRIPT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/$(basename "${BASH_SOURCE[0]}")"
SHELL_FILE_PATH=$(dirname $SCRIPT_PATH)
# 仓库地址
export GIT_PUSH_URL=git@gitee.com:make_sound/java-se-windows.git
#用户配置
git config --global user.name "object"
git config --global user.email "1813033378@qq.com"
# 导入工具
source $SHELL_FILE_PATH/git-utils.sh

# windows 下载 jdk25
URL=https://download.java.net/openjdk/jdk25/ri/openjdk-25+36_windows-x64_bin.zip
download $URL $DOWNLOAD_DIR/openjdk-25+36_windows-x64_bin.zip

# windows 下载 jdk24
URL=https://download.java.net/openjdk/jdk24/ri/openjdk-24+36_windows-x64_bin.zip
download $URL $DOWNLOAD_DIR/openjdk-24+36_windows-x64_bin.zip

# windows 下载 jdk23
URL=https://download.java.net/openjdk/jdk23/ri/openjdk-23+37_windows-x64_bin.zip
download $URL $DOWNLOAD_DIR/openjdk-23+37_windows-x64_bin.zip

# windows 下载 jdk22
URL=https://download.java.net/openjdk/jdk22/ri/openjdk-22+36_windows-x64_bin.zip
download $URL $DOWNLOAD_DIR/openjdk-22+36_windows-x64_bin.zip

# windows 下载 jdk21
URL=https://download.java.net/openjdk/jdk21/ri/openjdk-21+35_windows-x64_bin.zip
download $URL $DOWNLOAD_DIR/openjdk-21+35_windows-x64_bin.zip

# windows 下载 jdk20
URL=https://download.java.net/openjdk/jdk20/ri/openjdk-20+36_windows-x64_bin.zip
download $URL $DOWNLOAD_DIR/openjdk-20+36_windows-x64_bin.zip

# windows 下载 jdk19
URL=https://download.java.net/openjdk/jdk19/ri/openjdk-19+36_windows-x64_bin.zip
download $URL $DOWNLOAD_DIR/openjdk-19+36_windows-x64_bin.zip

# windows 下载 jdk18
URL=https://download.java.net/openjdk/jdk18/ri/openjdk-18+36_windows-x64_bin.zip
download $URL $DOWNLOAD_DIR/openjdk-18+36_windows-x64_bin.zip

# windows 下载 jdk17
URL=https://download.java.net/openjdk/jdk17.0.0.1/ri/openjdk-17.0.0.1+2_windows-x64_bin.zip
download $URL $DOWNLOAD_DIR/openjdk-17.0.0.1+2_windows-x64_bin.zip

# windows 下载 jdk16
URL=https://download.java.net/openjdk/jdk16/ri/openjdk-16+36_windows-x64_bin.zip
download $URL $DOWNLOAD_DIR/openjdk-16+36_windows-x64_bin.zip

# windows 下载 jdk15
URL=https://download.java.net/openjdk/jdk15/ri/openjdk-15+36_windows-x64_bin.zip
download $URL $DOWNLOAD_DIR/openjdk-15+36_windows-x64_bin.zip

# windows 下载 jdk14
URL=https://download.java.net/openjdk/jdk14/ri/openjdk-14+36_windows-x64_bin.zip
download $URL $DOWNLOAD_DIR/openjdk-14+36_windows-x64_bin.zip

# windows 下载 jdk13
URL=https://download.java.net/openjdk/jdk13/ri/openjdk-13+33_windows-x64_bin.zip
download $URL $DOWNLOAD_DIR/openjdk-13+33_windows-x64_bin.zip

# windows 下载 jdk12
URL=https://download.java.net/openjdk/jdk12/ri/openjdk-12+32_windows-x64_bin.zip
download $URL $DOWNLOAD_DIR/openjdk-12+32_windows-x64_bin.zip

# windows 下载 jdk11
URL=https://download.java.net/openjdk/jdk11.0.0.2/ri/openjdk-11.0.0.2_windows-x64.zip
download $URL $DOWNLOAD_DIR/openjdk-11.0.0.2_windows-x64.zip

# windows 下载 jdk10
URL=https://download.java.net/openjdk/jdk10/ri/jdk-10+44_windows-x64_bin_ri.tar.gz
download $URL $DOWNLOAD_DIR/jdk-10+44_windows-x64_bin_ri.tar.gz

# windows 下载 jdk9
URL=https://download.java.net/openjdk/jdk9/ri/jdk-9+181_windows-x64_ri.zip
download $URL $DOWNLOAD_DIR/jdk-9+181_windows-x64_ri.zip

# windows 下载 jdk8u44
URL=https://download.java.net/openjdk/jdk8u44/ri/openjdk-8u44-windows-i586.zip
download $URL $DOWNLOAD_DIR/openjdk-8u44-windows-i586.zip

# windows 下载 jdk7u75
URL=https://download.java.net/openjdk/jdk7u75/ri/jdk_ri-7u75-b13-windows-i586-18_dec_2014.zip
download $URL $DOWNLOAD_DIR/jdk_ri-7u75-b13-windows-i586-18_dec_2014.zip

# 删除数据
rm -rf $GIT_WORK_DIR





